package com.itheima.mybatis_plus.controller;
import com.itheima.mybatis_plus.entity.Classes;
import com.itheima.mybatis_plus.service.ClassesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@RestController
@RequestMapping("class")
public class ClassesController {
    @Autowired
    private ClassesService classesService;
    @RequestMapping("findAll")
    public List<Classes> findAll(){
        List<Classes> byId = classesService.findById();
        System.out.println(byId);
        return byId;
    }
}
